home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-30 | 1.7 KB | 44 lines | [TEXT/GEOL] |
- Item 0667052 28-Oct-89 16:41
-
- From: SHEBANOW1 Shebanow, Andrew
-
- To: UK0310 Paul G Smith
- MACAPP.TECH$ MACAPP Tech
-
- Sub: RE>C++ VMTs again
-
- Attn: Paul G Smith
- Attn: MacApp.Tech
- SentBy: Andrew Shebanow
- Reply to: RE>C++ VMTs again
- Sorry about the repeated messages. Our group is beta testing a
- QuickMail<->AppleLink gateway, and it goes nuts every once in a while. Its a
- great product, though. No more logging onto AppleLink four times a day!!!
-
- Anyhow, to answer the rest of your question, standard C++ objects (those that
- do not derive from PascalObject) use the standard C++ dispatching scheme. You
- can't mix PascalObjects with non-PascalObjects - one of the limitations of
- PascalObjects is that they preclude multiple inheritance, since the Object
- Pascal dispatching scheme isn't designed to handle that sort of thing.
-
- By the way, just to further cloud the issue, Apple also has two additional
- predefined base classes, HandleObject and SingleObject. SingleObjects use the
- older, C++ 1.2 dispatch scheme, which is more efficient than the C++ 2.0
- multiple inheritance scheme. HandleObjects use the same dispatch scheme as
- SingleObjects, but they are handle based instead of pointer based. So in a
- sense, there are actually four distinct different types of objects in Apple's
- C++, which can be used more or less interchangably.
-
- And before anyone complains that we have corrupted or otherwise abused the
- language definition, Stroustrup saw our extensions in action at OOPSLA, and is
- said to have liked them.
-
- Hope this answers your question fully.
-
- Andrew Shebanow
- MacDTS
- Apple Computer
-
-
-
-